package myalg.graphs;

import java.awt.*;
import java.util.ArrayList;
import java.util.Collection;

/**
 * @author Pavel Belevich
 *         Date: Jun 13, 2012
 *         Time: 2:14:20 PM
 */
public class Vertex {

    private double x;
    private double y;
    private Collection<Edge> edges = new ArrayList<Edge>();

    private Color color = Color.RED;
    private String caption;
    private double radius = 3.0;

    public Vertex() {
    }

    public Vertex(double x, double y) {
        this.x = x;
        this.y = y;
    }

    public Vertex(double x, double y, Color color) {
        this.x = x;
        this.y = y;
        this.color = color;
    }

    public Vertex(double x, double y, String caption) {
        this.x = x;
        this.y = y;
        this.caption = caption;
    }

    public Vertex(double x, double y, Color color, String caption) {
        this.x = x;
        this.y = y;
        this.color = color;
        this.caption = caption;
    }

    public double getX() {
        return x;
    }

    public void setX(double x) {
        this.x = x;
    }

    public double getY() {
        return y;
    }

    public void setY(double y) {
        this.y = y;
    }

    public Collection<Edge> getEdges() {
        return edges;
    }

    public void setEdges(Collection<Edge> edges) {
        this.edges = edges;
    }

    public String getCaption() {
        return caption;
    }

    public void setCaption(String caption) {
        this.caption = caption;
    }

    public Color getColor() {
        return color;
    }

    public void setColor(Color color) {
        this.color = color;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }
}
